package com.example.vo;
/*
 * @Author: hx
 * @CreateTime: 2022/3/11 11:50
 * @Description:
 * */

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVO {
    private Integer id;

    private String content;

    @JsonProperty("created_at")
    private Date createdAt;

    @JsonProperty("parent_id")
    private Integer parentId;

    private Reviewer reviewer;


    @JsonProperty("sub_comments")
    private List<CommentVO> subComments;//子评论信息
}
